package HLLibClasses;

import HLCode.HLClassManager;
import HLCode.HLLibClass;
import HLCode.HLObject;
import HLLib.base.HLGraphics;
import HLLib.ui.HLUISeed;

public class HLClassUISeed extends HLLibClass {
    public HLClassUISeed(HLClassManager owner) {
        super(owner);
    }

    public HLObject NewObject() {
        return new HLUISeed();
    }

    public void Execute(HLObject self, int index, HLObject args, HLObject resultOwnerObject, int resultIndex) {
        switch (index) {
        case 0: {
            ((HLUISeed) self).RenderEX((HLGraphics)args.GetObject(0), args.GetInt(0), args.GetInt(1), args.GetInt(2), args.GetInt(3), args.GetInt(4), args.GetInt(5));
            break;
        }
        case 1: {
            if (resultOwnerObject == null) {
                ((HLUISeed) self).GetImageList(args.GetInt(0));
            } else {
                resultOwnerObject.SetObject(resultIndex, ((HLUISeed) self).GetImageList(args.GetInt(0)));
            }
            break;
        }
        }
    }
}
